<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text-html; charset=Windows-1252">
<title>Inserting the HTML Help ActiveX control</title>
<style>@import url(coUA.css);</style>
<link disabled rel="stylesheet" href="htmlhelp.css">
<script language="JavaScript" src="master.js"></script>
</HEAD>

<BODY>

<h1>Inserting the HTML Help ActiveX control</h1>

<p>You can add the HTML Help ActiveX control to an HTML file by using the standard HTML <code>&lt;OBJECT&gt;</code> tag. The <code>&lt;OBJECT&gt;</code> tag includes a set of parameters that you use to specify which data the control should use, and to control the appearance and behavior of the control.</p> 

<p>Whether you use the control in a compiled help (.chm) file or in uncompiled HTML files, you can insert the control using the HTML Help ActiveX Control Wizard, or you can insert it manually, by typing the appropriate <a href="ocx_syntax.htm"><code>&lt;OBJECT&gt;</code></a> tag code.</p>

<!--To resolve in next release:
<font face="Arial" color="green">Query: can we add a link here to something that explains what the whole business of using uncompiled HTML files is all about? I think it's clear after awhile but initially when reading this can be confusing. We might also add a link to something about how with a .chm you get the Viewer. There is probably already a topic along these lines in the main help that could be stolen and rewritten for here</font>-->

<h2>Inserting the control using HTML Help Workshop</h2>

<p>Use the HTML Help ActiveX Control Wizard, which is included in the HTML Help Workshop, to author any of the <a href="ocx_commands.htm">commands</a> in an HTML file.</p>

<p>To use the HTML Help ActiveX Control Wizard, start HTML Help Workshop, and then open an HTML file. Position your cursor anywhere between the <code>&lt;BODY&gt;</code> start and end tags, and then click <a onclick="doSection(wiz)" class=sidebar href="#nowhere"><b>HTML Help ActiveX Control</b></a>.</p>

	<DIV CLASS="sidebartbl" ID="wiz" STYLE="display: none"
	onclick="noSection(wiz)">
<img src="sb_wiz.gif" width=64 height=64 border=0 alt="">
	<P class=margin>			
	<b>HTML Help ActiveX Control</b>
	</P>
	<P class=margin2>			
	Opens the HTML Help ActiveX Control Wizard, which enables you to insert or edit the control in an HTML file.
	</P>
	</DIV>

<p>To edit an existing instance of the control, position your cursor anywhere within the <code>&lt;OBJECT&gt;</code> start and end tags of the control, and then click <b>HTML Help ActiveX Control</b>.</p>


<h2>Inserting the control manually</h2>

<p>The easiest way to work with the control is to insert it using the HTML Help ActiveX Control Wizard. However, you can also copy an existing instance of the control from one HTML file into another. You can then edit the <a href="ocx_syntax.htm"><code>&lt;OBJECT&gt;</code></a> tag code manually.</p>

<p>When you copy an existing control, make sure to copy all the text from the start <code>&lt;OBJECT&gt;</code> tag through the end <code>&lt;/OBJECT&gt;</code> tag. You should then paste the text anywhere between the <code>&lt;BODY&gt;</code> start and end tags of an HTML file.</p>


<br>
<table border="0" cellpadding="0" cellspacing="4">
<tr>
<td valign="top"><a href="ocx_ov.htm"><img src="proced.gif" alt="link to overview topic" border="0"></a>
</td>
<td><a href="ocx_ov.htm">About the HTML Help ActiveX control</A>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>

<h3>Note</h3>
<ul>
<li>Never omit the <code>PARAM</code> tag from the HTML Help ActiveX control Object tag, as this may result in unexpected behavior.
</ul>

<!--start keywords--->

<!--end keywords--->


</BODY>
</HTML>
